#include "task.h"
#include "interrupt.h"
#include "screen.h"
#include "queue.h"

int g_var = 0;
int* g_p = &g_var;
int* g_q = &g_var;

struct Test {
    void* p;
    int value;
};

struct Test g_t;

void KMain()
{
    PrintChar('\n');
    PrintIntDec(IsEqual(1, 2));
    PrintChar('\n');
    PrintIntDec(IsEqual(g_p, g_q));
    PrintChar('\n');

    PrintIntHex(&g_t);
    PrintChar('\n');
    PrintIntHex(OffsetOf(struct Test, value));
    PrintChar('\n');
    PrintIntHex(ContainerOf(&(g_t.value), struct Test, value));
    PrintChar('\n');

    //IntModInit();
    //TaskModInit();
    //LaunchTask();
}
